@import './variables.less';
@import './instance.less';
@import './graph.less';

body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

html {
    height: 100%;
    box-sizing: border-box;
}

#app {
    height: 100%;
}

.no-padding {
    padding: 0px !important;
}

.padding-content {
    padding: 4px 0;
}

a:focus,
a:active {
    outline: none;
}

a,
a:focus,
a:hover {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

div:focus {
    outline: none;
}

.fr {
    float: right;
}

.fl {
    float: left;
}

.pr-5 {
    padding-right: 5px;
}

.pl-5 {
    padding-left: 5px;
}

.block {
    display: block;
}

.pointer {
    cursor: pointer;
}

.inlineBlock {
    display: block;
}

.clearfix {
    &:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    }
}

//main-container全局样式
.app-container {
    padding: 20px;
}

.components-container {
    margin: 30px 50px;
    position: relative;
}

.pagination-container {
    margin-top: 30px;
}

.text-center {
    text-align: center
}

.sub-navbar {
    height: 50px;
    line-height: 50px;
    position: relative;
    width: 100%;
    text-align: right;
    padding-right: 20px;
    transition: 600ms ease position;
    background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

    .subtitle {
        font-size: 20px;
        color: #fff;
    }

    &.draft {
        background: #d0d0d0;
    }

    &.deleted {
        background: #d0d0d0;
    }
}

.link-type,
.link-type:focus {
    color: #337ab7;
    cursor: pointer;

    &:hover {
        color: rgb(32, 160, 255);
    }
}

.filter-container {
    padding-bottom: 10px;

    .filter-item {
        display: inline-block;
        vertical-align: middle;
        margin-bottom: 10px;
    }
}

//refine vue-multiselect plugin
.multiselect {
    line-height: 16px;
}

.multiselect--active {
    z-index: 1000 !important;
}

//基础投影
.docs-style {
    box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04)
}

//浅色投影
.chalk-style {
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1)
}

.border-radius {
    border-radius: 2px;
}

.border {
    border: 1px solid #d7dae2;
}

.dialog .el-dialog__body .dialog-footer {
    margin-left: -20px;
    margin-right: -20px;
    box-sizing: border-box;
    border-top: 1px solid @--border-color-base;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    text-align: right;
}

.modal-wrapper {
    .el-select {
        width: 100%;
    }

    .el-date-editor.el-input,
    .el-date-editor.el-input__inner {
        width: 100%;
    }

    .el-upload {
        width: 100%;
    }

    .el-upload-dragger {
        width: 100%;
    }
}

.el-submenu .el-menu-item {
    min-width: auto;
}

.main {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.content {
    background-color: #ffffff;
    box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 20px;
    box-sizing: border-box;
    flex-grow: 1;
    height:100%;
}

.form-wrapper {
    max-width: 800px;

    &.is-center {
        margin-left: auto;
        margin-right: auto;
    }
}

.form-btn-row {
    padding-top: 16px;

    &.is-center {
        text-align: center;
    }

    &.is-right {
        text-align: right;
    }

    .el-button {
        min-width: 96px;
    }

    .el-button + .el-button {
        margin-left: 24px;
    }
}

.flex-center {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.form-limit {
    @width: 512px;

    .el-input {
        width: @width;
    }

    .el-textarea {
        width: @width;
    }

    .el-select {
        width: @width;
    }

    .el-radio-group {
        width: @width;

        .el-radio {
            line-height: 40px;
        }
    }

    &.is-center {
        margin-left: auto;
        margin-right: auto;
    }
}

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;

    .block-header-left {
        display: flex;
        align-items: center;
    }

    .block-header-right {
        display: flex;
        align-items: center;
    }
}

.el-table .el-button--text {
    padding-top: 0;
    padding-bottom: 0;
}

.el-table th {
    background-color: rgba(0, 0, 0, .04);
    color: @--color-text-primary;
    line-height: 1em;
}

.el-radio__label {
    padding-left: 8px;
}

.el-form-item {
    margin-bottom: 20px;
}

// dialog
.el-dialog__header {
    box-sizing: border-box;
    border-bottom: 1px solid @--border-color-base;
    font-weight: 500;
    padding: 20px;
}

.el-dialog__title {
    font-family: PingFangSC-Medium;
    font-size: 16px;
    color: @--color-text-primary;
    font-weight: 500;
}

.el-dialog__body {
    padding-bottom: 20px;
}

.el-table .sort-caret.ascending,
.el-table .sort-caret.descending {
    color: #8c8c8c;
}

.el-table .el-input {
    width: 100%;
}

.el-form-item__label {
    padding: 0 4px 0 0;
}

.el-form-item__error {
    padding-top: 1px;
}

// 只有外边框的table
.border-table {
    border: 1px solid #EBEEF5;
    border-bottom: none;
}

.el-input.is-active .el-input__inner, .el-input__inner:focus {
    box-shadow: 0px 0px 0px 2px rgba(0, 173, 236, 0.2);
}

.el-textarea__inner:focus {
    box-shadow: 0px 0px 0px 2px rgba(0, 173, 236, 0.2);
}

.el-textarea .el-input__count {
    right: 20px;
}


.template-root-div {
    width: 100%;
    height: 100%;
}

// 弹出框修改
.el-popover {
    //background: #303133;
    //color: #fff;
    border: none;
}

.el-popover__title {
    //color: #fff;
}

.popper__arrow {
    border-right-color: #303133 !important;
}

.popper__arrow::after {
    border-right-color: #303133 !important;
}

//
.el-table::before {
    height : 0 !important;
}

.el-tooltip__popper {
    max-width: 30% !important;
}

.el-pagination__total {
    font-weight: 700;
}